package com.woniu108.carService.commos.exception.orderService;

/**
 * @author LY
 */

public enum OrderServiceExceptionCode {
    ORDER_NULL(6009,"订单不存在"),
    ORDER_SERVICE_USER_NO_POWER(6010,"用户无权进行此操作"),
    ORDER_SERVICE_STATE_NOT_CANCEL(6011,"订单已无法取消"),
    ORDER_SERVICE_STATE_NO_DELETED(6012,"订单尚不能删除"),
    SERVICE_NO_EQUAL_STORE(6013,"服务不属于此门店"),
    STORE_PRODUCT_NO_EQUAL_STORE(6014,"商品不属于该门店"),
    STORE_PRODUCT_NO_EXISTED_OR_DELETED(6015,"商品不存在或已删除"),
    STORE_PRODUCT_NUM_SHUT(6016,"有商品库存不足"),
    ORDER_SERVICE_PAID(6017,"订单无法支付"),
    ORDER_SERVICE_USER_NO_HAVE_VIP(6018,"用户并非vip或已过期"),
    ORDER_SERVICE_STATE_NO_PAID(6019,"订单未支付"),
    ORDER_SERVICE_STATE_RUNNING(6020,"服务流程尚未结束"),
    ORDER_CANCELED_OR_DELETED(6021,"订单已删除或已取消");

    private Integer code;
    private String message;

    OrderServiceExceptionCode() {
    }

    OrderServiceExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
